package Avocado.util {

	import flash.display.MovieClip;
	import flash.utils.getDefinitionByName;
	import flash.utils.getQualifiedClassName;

	public class Duplicate {
		
		public function Duplicate() {
		}
		
		public static function movieClip(target:MovieClip, add:Boolean=false):MovieClip{
			var TargetClass:Class = Class(getDefinitionByName(getQualifiedClassName(target))) as Class;
			var duplicateClip:MovieClip = new TargetClass() as MovieClip;
			return duplicateClip;
		}

	}
}